#ifndef CONTAINER_H_
#define CONTAINER_H_

#include "../Widget.h"

class Container: public Widget {

private:
	Container(){};
protected:

	std::list<Widget*> widgets;
	std::list<Widget*>::iterator it_widget;

public:

	Container(int posX, int posY, Widget* parent);

	virtual void handleEvent(Event event) = 0;

	virtual void showOn(SDL_Surface* surface) = 0;

	virtual void resolve() = 0;

	void add(Widget* widget);

	virtual ~Container();
};

#endif /* CONTAINER_H_ */
